jQuery(function(){
	$.divselect("#divselect_po_status", "#status");
});

var query = function(){
	asyncSubmit("dispatchOutputForm");
};

var acceptOrder = function(orderId){
	layer.confirm("确定执行验收操作？",function(){
		var fun = function(msg) {
			if (msg.result == "success") {
				layer.msg("执行验收操作成功！",1,9,function(){
					query();
				});
			} else {
				layer.alert(msg.result);
			};
		};
		
		ajaxCommFunWithDataType(globePath+"/dispatch/acceptOrder.htm", "oderId="+orderId,'json',fun);
	});
};